<?php

Raise::load('control.RaiseAjaxArea');

/**
 * AjaxTimeDisplay class
 * AJAX time display that will auto update itself with a URL click
 *
 * @author Sam Yong
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package App.RaiseDemo
 * @since 1.2
 */
class AjaxTimeDisplay extends RaiseAjaxArea {
    
    function __construct($id){
        parent::__construct();
        $this->clientId($id);
        $this->content(time() . '<br /><a href="' . $this->getStaticLink() . '" onclick="' . $this->getAjaxJavascript() . '">Update</a>');
    }
    
}